﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DayuCode.Designer.Entity
{
    public class TemplatePageLayout
    {
		public int? Ordnum { get; set; }
		public string TerminalType { get; set; }
		public string CreateUser { get; set; }
		public string ImgPath { get; set; }
		public string LayoutName { get; set; }
		public string CreateTimeStr { get; set; }
		public long? Id { get; set; }
		public int? Status { get; set; }


        public TemplatePageLayout()
        {

        }

        public TemplatePageLayout(long? id)
        {
            Id = id;
        }
        public override string ToString()
        {
            return LayoutName;
        }

        public override bool Equals(object obj)
        {
            if (Id == null) return false;
            TemplatePageLayout oth = obj as TemplatePageLayout;
            if (oth == null) return false;
            return Id.Equals(oth.Id);
        }

        public override int GetHashCode()
        {
            if (Id == null) return 0;
            return Id.GetHashCode();
        }
    }
}
